package ve.lm.hrms_cy.Entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.time.LocalDateTime;


@TableName("department")
public class Department {

    private Long id;
    private String name;
    @TableField("presidentId")
    private Long presidentId;
    @TableField("buildTime")
    private LocalDateTime buildTime;
    private String remark;
    private String status;


    public Department(){}

    @JsonCreator
    public Department(@JsonProperty("name") String name ,@JsonProperty("presidentId") Long presidentId ,@JsonProperty("remark") String remark ,@JsonProperty("status") String status){

        this.name=name;
        this.presidentId=presidentId;
        this.remark=remark;
        this.status=status;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getPresidentId() {
        return presidentId;
    }

    public void setPresidentId(Long presidentId) {
        this.presidentId = presidentId;
    }

    public LocalDateTime getBuildTime() {
        return buildTime;
    }

    public void setBuildTime(LocalDateTime buildTime) {
        this.buildTime = buildTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}
